import request from '@/utils/request'

// 查询招标信息列表
export function listTenderInfo(query) {
  return request({
    url: '/supply/tenderInfo/list',
    method: 'get',
    params: query
  })
}

// 查询招标信息详细
export function getTenderInfo(tenderId) {
  return request({
    url: '/supply/tenderInfo/' + tenderId,
    method: 'get'
  })
}

// 新增招标信息
export function addTenderInfo(data) {
  return request({
    url: '/supply/tenderInfo',
    method: 'post',
    data: data
  })
}

// 修改招标信息
export function updateTenderInfo(data) {
  return request({
    url: '/supply/tenderInfo',
    method: 'put',
    data: data
  })
}

// 删除招标信息
export function delTenderInfo(tenderId) {
  return request({
    url: '/supply/tenderInfo/' + tenderId,
    method: 'delete'
  })
}
